package jackson.src.day02;

/*
 * Author: JacksonCoder
 * FileName: overMethd
 * Version: 1.0.0
 */
public class overMethd {
    public static void main(String[] args) {
        System.out.println("this is overMethd file entry");
        Hello h = new Hello();
        h.hell0();
        h.hello("Jackson");
        h.hello("Jackson", 134);
    }
}

class Hello {

    public void hell0() {
        System.out.println("Hello, world!");
    }

    public void hello(String name){
        System.out.println("Hello, " + name + "!");
    }

    public void hello(String name, int age){
        if( age < 18){
            System.out.println("hello " + name + "!");
        }else{
            System.out.println("hello " + name + " age " + age);
        }
    }
}
